package com.yuehuanghun.admin.core.config.annotation.mybatislilu;

import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import javax.persistence.Column;

import com.yuehuanghun.admin.core.config.MyExampleQueryConverter;
import com.yuehuanghun.framework.util.StringUtils;
import com.yuehuanghun.mybatis.milu.annotation.AttributeOptions;
import com.yuehuanghun.mybatis.milu.annotation.ExampleQuery;
import com.yuehuanghun.mybatis.milu.annotation.Filler;

@Retention(RUNTIME)
@Target(FIELD)
public @interface CreateTime {
	
	@AttributeOptions(filler = @Filler(fillOnInsert = true), exampleQuery = @ExampleQuery(startKeyName = "params.timeBegin", endKeyName = "params.timeEnd", valueConverter = MyExampleQueryConverter.class))
    @Column(updatable = false)
	String value() default StringUtils.EMPTY;
}
